package com.example.gbuffer.Component.Light;

public abstract class Light {
    protected float[] m_position = new float[]{0.0f, 0.0f, 0.0f};
    protected float[] m_lightColor = new float[]{1.0f, 1.0f, 1.0f};

    public float[] getPosition(){
        return new float[]{
                m_position[0],m_position[1],m_position[2]
        };
    }

    public float[] getLightColor() {
        return new float[] {
                m_lightColor[0], m_lightColor[1], m_lightColor[2]
        };
    }

    public void setPosition(float x, float y, float z){
        m_position[0] = x;
        m_position[1] = y;
        m_position[2] = z;
    }

    public void setLightColor(float r, float g, float b) {
        m_lightColor[0] = r;
        m_lightColor[1] = g;
        m_lightColor[2] = b;
    }
}
